<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/25
 * Time: 11:27
 */

namespace app\api\validate;


class GoodsSpecPriceValidate extends BasaValidate
{
    protected  $rule = [
        'id' => 'require|isPositiveInteger',
        'spec_ids' => 'require',
    ];

    protected $message = [
        'id.require' => 'ID必须存在',
        'id.isPositiveInteger' => 'ID必须是正整数',
        'spec_ids' => '规格参数必须存在',
    ];
}